package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.Org;

@RemoteServiceRelativePath("OrgService")
public interface OrgService extends RemoteService {
	public static class Util {
		private static OrgServiceAsync instance;

		public static OrgServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(OrgService.class);
			}
			return instance;
		}
	}

	public List<Org> getAllOrgList();

	public List<Org> getUnQuyuedOrgList();

	public List<Org> getOrgListByQuyuCode(String quyuCode);

	public List<Org> getOrgListByStaffCode(String staffCode);

	public Org getOrgByCode(String orgCode);

}
